On Wed, Nov 29 2023, Peter Münster wrote:
> According to https://wiki.contextgarden.net/Command/date:
> "The name suffixes indicate number conversions. Any conversion, either
> built-in or defined by \defineconversion, can be used there."
>
> But it does not seem to w
le un novembre".
You say "le deux novembre" but not "le deuxième novembre".
According to https://wiki.contextgarden.net/Command/date:
"The name suffixes indicate number conversions. Any conversion, either
built-in or defined by \defineconversion, can be used ther
.contextgarden.net/Command/defineconversion:
interfaces.implement {
name = "FRdate",
public= true,
arguments = "string",
actions =
function(s)
local n = tonumber(s)
if n == 1 then
context"1
Hi,
When printing a date in French, I would like to convert the "1" to
"1\ier", but it does not work as I expect:
--8<---cut here---start->8---
\startluacode
-- from https://wiki.contextgarden.net/Command/defineconversion:
inter
context("%t",digits)
end
}
\stopluacode
\unprotect
\permanent\def\kaktoviknumerals#1{\clf_kaktoviknumerals\numexpr#1\relax}
\defineconversion [kaktoviknumerals] [\kaktoviknumerals]
\defineconversion [K][\kaktoviknumerals]
\definefontfeature
[k
local count = 1
while true do
digits[count] = utf.char(0x1D2C0 + (n % 20))
n = n // 20
if n == 0 then
break;
end
count = count + 1
end
context("%t",d
On 2/16/2023 8:07 PM, Alex Leray via ntg-context wrote:
Answering my own question… this fits my needs:
###
\defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII,
VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI]
\setuphead[section][conversion=romannumeralszero
Answering my own question… this fits my needs:
###
\defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII,
VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI]
\setuphead[section][conversion=romannumeralszero]
\starttext
\startsection[title={Section zero}]foo
Thank you, Wolfgang!
I _knew_ ConTeXt would be able to handle my requirements! ;D
It’s wikified now (at \setuphead and \defineconversion).
Hraban
Am 01.01.23 um 11:27 schrieb Wolfgang Schuster:
Henning Hraban Ramm via ntg-context schrieb am 31.12.2022 um 18:23:
A happy new year to everyone
.
begin example
\startluacode
interfaces.implement {
name = "FourDigits",
public = true,
arguments = "string",
actions = function(s) context("%04d",tonumber(s)) end
}
\stopluacode
\defineconversion [FourDigits] [\FourDigits]
\setuphead
[cha
][suffix={(cont'd)] but that affects all the
pages. How can I set it for the second and subsequent pages only, please?
The solution turned out to be really simple (for small tables at least - less
fun if you have hundreds of pages!). Just use:
\defineconversion[Contd][~,{ (cont’d)},{ (con
pcaption[table][suffix={(cont'd)] but that affects all the
> pages. How can I set it for the second and subsequent pages only, please?
The solution turned out to be really simple (for small tables at least - less
fun if you have hundreds of pages!). Just use:
:\currentparentitemgroup][\recurselevel].}%
#1%
}
\defineconversion[legal][\legalconversion]
How can fix this?
Are you looking for the repeat keyword?
\starttext
\setupitemize[1][width=\widthofstring {0},distance=1em]
\setupitemize[2][width=\widthofstring {0.0},distance=1em]
\setupitemize[3
Hi to All
A have this piece of code that works in old ConText versions but with new
versions (current version: 2022.04.19 19:53) don’t.
\def\legalconversion#1{
\dorecurse{\numexpr\currentitemlevel-1}{%
\rawcounter[itemgroup:\currentparentitemgroup][\recurselevel].}%
#1%
}
\defineconversion
s
> > 6. Conversion
> > 7. Fundamental theorems on well-formed formulas and on the normal form
> > I tried to the following for the chapters:
> > \defineconversion[church][Chapter \Romannumerals.\quad]
> > \setuphead[chapter][conversion=church]
> > Whic
the normal form
I tried to the following for the chapters:
\defineconversion[church][Chapter \Romannumerals.\quad]
\setuphead[chapter][conversion=church]
Which appeared to generate the prefix correctly but it overlapped the
title.
\setuplabeltext
[en] [chapter=Chapter ]
\defineresetset
on
Chapter II. Lambda Conversion .
5. Primitive symbols and formulas
6. Conversion
7. Fundamental theorems on well-formed formulas and on the normal form
I tried to the following for the chapters:
\defineconversion[church][Chapter \Romannumerals.\quad]
\setuphead[chapter][conversion=chur
\or ד
\or ה
\or ו
\or ז
\or ח
\or ט
\or י
\else -\fi}
\defineconversion[hebrewnumerals][\hebrewnumber]
I assume that the right way to do it, that would allow for more numbers
\hebrewnumber#1%
{\ifcase#1 \or א
\or ב
\or ג
\or ד
\or ה
\or ו
\or ז
\or ח
\or ט
\or י
\else -\fi}
\defineconversion[hebrewnumerals][\hebrewnumber
s won't
> increment the item counter. To continue the counter and replace some symbol
> you have to create your own number conversion.
>
> \defineconversion [kevin] [1,k,3,4,5,6,7,8,9]
>
> \starttext
>
> \startitemize[n]
> \item A
> \txt{k} B
> \
items with \txt but this won't
increment the item counter. To continue the counter and replace some
symbol you have to create your own number conversion.
\defineconversion [kevin] [1,k,3,4,5,6,7,8,9]
\starttext
\startitemize[n]
\item A
\txt{k} B
\item C
\stopitemize
\blank[2*line
checks if the applies keywords include
> the name of a symbol (something you create with \definesymbol) or the name of
> a number conversion (something you create with \defineconversion) and applies
> it to the current entry.
>
> This check also you to create
gt; %-- Working example, but it is not what I need --
> > \setupindenting[yes,small]
> > \defineconversion[mymix][1,\m{*},2]
> >
>
> \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix]
> >
>
On 12/23/2019 2:21 PM, Aykut Aykutt wrote:
Hi,
I can change the mark of the second footnote from "2" to asterix by
defining a conversion like so:
%-- Working example, but it is not what I need --
\setupindenting[yes,small]
\defineconversion[mymix][1,\m{*},2]
\set
Hi,
I can change the mark of the second footnote from "2" to asterix by
defining a conversion like so:
%-- Working example, but it is not what I need --
\setupindenting[yes,small]
\defineconversion[mymix][1,\m{*},2]
\setupnotation[footnote][align={hz,hanging},indenting={yes,
the symbol for
the bullets or use numbers instead ConTeXt checks if the applies
keywords include the name of a symbol (something you create with
\definesymbol) or the name of a number conversion (something you create
with \defineconversion) and applies it to the current entry.
This check also you
]
\usetypescript[termes]
\setupbodyfont[termes,12pt]
\def\arconv#1{\alphabeticnumerals{#1})}
\defineconversion[ar][\arconv]
\def\aarconv#1{\alphabeticnumerals{#1}\alphabeticnumerals{#1})}
\defineconversion[aar][\aarconv]
\definestructureconversionset[myconvset][,A,I,n,ar,aar]
\setupheads[part
t]
\def\arconv#1{\alphabeticnumerals{#1})}
\defineconversion[ar][\arconv]
\def\aarconv#1{\alphabeticnumerals{#1}\alphabeticnumerals{#1})}
\defineconversion[aar][\aarconv]
\def\lnrconv#1{(\numbers{#1})}
\defineconversion[lnr][\lnrconv]
\def\larconv#1{(\alphabeticnumerals{#1})}
\defineconversion[lar][\larconv]
nt.0f”,(\pagenumber+1)/2}
This works indeed fine. However now I am confronted with the fact, that in the
TOC the manipulated pagenumbers should be taken into account.
\def\dwarsliggernumber#1%
{\number\numexpr(#1+1)/2\relax}
\defineconversion [dwarsligger] [\dwarsliggernumber]
\setuppapersize[A5,land
letterpercent d",(#1+1)/2}}
\defineconversion [dwarsligger] [\DwarsliggerNumber]
\setuppapersize[A5,landscape]
\setupuserpagenumber[numberconversion=dwarsligger]
\setuppagenumbering[location=none]
\setupheadertexts [\doifoddpageelse{\prefixedpagenumber}{}]
\starttext
\dorecurse{1
][rscale=1.05,range=math:somesymbols]
\definefontfamily[mainface][serif][Adobe Garamond Pro]
\definefontfamily[mainface][math][TeX Gyre Termes Math][scale=0.9]
\setupbodyfont[mainface,11pt]
% footnotes
\defineconversion[avhset][\m{\wedge},\m{\prime}]
\setupnotation
On Wed, Nov 8, 2017 at 12:40 PM, Otared Kavian <ota...@gmail.com> wrote:
> Hi Mikael,
>
> I learned the following from Aditya some time ago, on his website Random
> Determinism: maybe you can adapt it to your needs.
>
> \defineconversion[myset][\star,{\sta
Hi Mikael,
I learned the following from Aditya some time ago, on his website Random
Determinism: maybe you can adapt it to your needs.
\defineconversion[myset][\star,{\star\star},{\star\star\star}]
\defineformula[star][numberconversion=myset]
\starttext
\placeformula
\startstarformula
a^4 + b
e:
You can enable manual numbering
\setuphead[section][ownnumber=yes]
\starttext
\section{3}{Section 1}
\section{5}{Section 1}
\section{6}{Section 1}
\stoptext
or use a custom conversion
\defineconversion[drunk][3,5,6]
\setuphead[section][conversion=drunk]
\starttext
\dorecurse{3}{
n 1}
>
> \section{5}{Section 1}
>
> \section{6}{Section 1}
>
> \stoptext
>
>
> or use a custom conversion
>
>
> \defineconversion[drunk][3,5,6]
>
> \setuphead[section][conversion=drunk]
>
> \starttext
>
> \dorecurse{3}{\expanded{\section{Section \recurselev
You can enable manual numbering
\setuphead[section][ownnumber=yes]
\starttext
\section{3}{Section 1}
\section{5}{Section 1}
\section{6}{Section 1}
\stoptext
or use a custom conversion
\defineconversion[drunk][3,5,6]
\setuphead[section][conversion=drunk]
\starttext
\dorecurse{3
your help.
\defineexpandable[1]\PreviousNumber
{\number\numexpr#1-1\relax}
\defineconversion[PreviousNumber][\PreviousNumber]
\defineconversionset[ParagraphNumber][n,PreviousNumber,PreviousNumber]
\defineseparatorset [ParagraphNumber][.,]
\definecounter[ParagraphNumber][numberconversionset=Pa
n is a start. Here is a link to the
book that illustrates the layout:
https://www.dropbox.com/s/q7znlu0y362abno/Mure-Introduction-to-Hegel-OCR.pdf?dl=0
Thanks in advance for your help.
\defineexpandable[1]\PreviousNumber
{\number\numexpr#1-1\relax}
\defineconversion[PreviousNumber][\Pr
o/Mure-Introduction-to-Hegel-OCR.pdf?dl=0
Thanks in advance for your help.
Idris
Wolfgang Schuster <mailto:schuster.wolfg...@gmail.com>
7. August 2017 um 20:17
\defineexpandable[1]\PreviousNumber
{\number\numexpr#1-1\relax}
\defineconversion[PreviousNumber][\PreviousNumber]
\definec
o/Mure-Introduction-to-Hegel-OCR.pdf?dl=0
Thanks in advance for your help.
\defineexpandable[1]\PreviousNumber
{\number\numexpr#1-1\relax}
\defineconversion[PreviousNumber][\PreviousNumber]
\defineconversionset[ParagraphNumber][n,PreviousNumber,PreviousNumber]
\defineseparatorset [Paragraph
rmalstopformula\stopformula
>> \def\stopformula%
>> {\normalstopformula
>> \restorenumber[formula]
>> \egroup
>> \let\stopformula\normalstopformula}
>> \bgroup
>> \savenumber[formula]
>> \def\dummyconversion##1{#2}
>>
ula]
> \def\dummyconversion##1{#2}
> \defineconversion[dummyconversion][\dummyconversion]
> \setupformulas[conversion=dummyconversion]
> \placeformula[#1]}
>
> \starttext
> \placeformulatag[tag]{test} \startformula
>E = mc^2
> \s
sed greek to
> demonstrate it) but it could be done better (e.g.
> \currentdate[persian->day,space,month,persian->month] with "->" as
> separator for the conversion and keyword).
>
> %% begin example
> \installlanguage[fa][state=start]
>
> \definec
e day (see below, I used greek to
demonstrate it) but it could be done better (e.g.
\currentdate[persian->day,space,month,persian->month] with "->" as
separator for the conversion and keyword).
%% begin example
\installlanguage[fa][state=start]
\defineconversion[fa]
l,method=two]
\setupalign[r2l]
\def\LTR#1{{\lefttoright#1}}
\def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}}
\defineconversion[leftpersiandecimals][\leftpersiandecimals]
\setuphead[chapter,title,section,subject]
[conversion=leftpersiandecimals,numberstyle=\righttoleft]
\defineseparato
e way
> I like. Here is the setup that worked. (I will update Wiki later.)
> >
> > \setupdirections[bidi=global,method=two]
> > \setupalign[r2l]
> >
> > \def\LTR#1{{\lefttoright#1}}
> > \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}}
> > \defineconversion[lef
that worked. (I will update Wiki later.)
>
> \setupdirections[bidi=global,method=two]
> \setupalign[r2l]
>
> \def\LTR#1{{\lefttoright#1}}
> \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}}
> \defineconversion[leftpersiandecimals][\leftpersiandecimals]
> \setup
ay I
> like. Here is the setup that worked. (I will update Wiki later.)
>
> \setupdirections[bidi=global,method=two]
> \setupalign[r2l]
>
> \def\LTR#1{{\lefttoright#1}}
> \def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}}
> \defineconversion[leftpersiandecimals][\leftpersiande
#1}}
\def\leftpersiandecimals#1{\LTR{\persiandecimals{#1}}}
\defineconversion[leftpersiandecimals][\leftpersiandecimals]
\setuphead[chapter,title,section,subject]
[conversion=leftpersiandecimals,numberstyle=\righttoleft]
\defineseparatorset[dashsep][-,-,-,-]
\setuphead[section][sectionseparatorset
arator).
%% Attempt 3
\setupalign[r2l]
\def\LTR#1{{\lefttoright#1}}
\def\leftnumbers#1{\LTR{\numbers{#1}}}
\defineconversion[leftnumbers][\leftnumbers]
\setuphead[chapter,title,section,subject] [conversion=leftnumbers]
\starttext
\placecontent
\chapter{sample}
right-aligned but texts
> left-aligned):
> sample1
> text 1.1
> ...
> text 1.10
>
>
> A third attempt gives almost what I want (without period as the separator).
>
>
ves almost what I want (without period as the separator).
%% Attempt 3
\setupalign[r2l]
\def\LTR#1{{\lefttoright#1}}
\def\leftnumbers#1{\LTR{\numbers{#1}}}
\defineconversion[leftnumbers][\leftnumbers]
\setuphead[chapter,title,section,subject] [conversion=leftnumbers]
\starttext
\placecontent
\chap
the zero is not displayed; why?
You can't set a negative number for the start of the counter but you can
change the appereance.
\defineexpandable[1]\PreviousNumber
{\number\numexpr#1-1\relax}
\defineconversion[PreviousNumber][\PreviousNumber]
\defineconversionset[zerostart][n,Prev
andable[1]\PreviousNumber
{\number\numexpr#1-1\relax}
\defineconversion[PreviousNumber][\PreviousNumber]
\defineconversionset[zerostart][n,PreviousNumber][n]
\setuphead[chapter,section][sectionconversionset=zerostart]
\starttext
\chapter{First chapter}
\chapter
=myconversion]
\setupnotations[linenote][numberconversion=myconversion]
\setuppagenumber[numberconversion=myconversion]
\defineconversion
[myconversion]
[١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,
١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,
۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰,
٣١,٣٢,٣٣,٣٤,٣٥,٣٦,٣٧,٣٨,٣٩,٤٠
]
\setupnotations[linenote][numberconversion=myconversion]
\setuppagenumber[numberconversion=myconversion]
\defineconversion
[myconversion]
[١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,
١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,
۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰,
٣١,٣٢,٣٣,٣٤,٣٥,٣٦,٣٧,٣٨,٣٩,٤٠,
٤١,٤٢,٤٣,٤٤,٤٥,٤٦,٤٧,٤٨,٤٩,٥٠
ABIC-HINDI NUMERALS\defineconversion[myconversion][١,٢,٣,٤,٥,٦,٧,٨,٩,١٠,١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠,]%% HEADINGS\setuppagenumber[numberconversion=myconversion]%%% LINENUMBERING\setuplinenumbering[% style=\tfxx, referencing=on, step=1, location=outer, method=page, align=left, distance=1em, w
s[footnote][numberconversion=myconversion]\setupnotations[linenote][numberconversion=myconversion]\setuppagenumber[numberconversion=myconversion]\defineconversion [myconversion] [١,٢,٣,٤,٥,٦,٧,٨,٩,١٠, ١١,١٢,١٣,١٤,١٥,١٦,١٧,١٨,١٩,٢٠, ۲۱,۲۲,۲۳,۲٤,۲٥,۲٦,۲۷,۲۸,۲۹,۳۰, ٣١,٣٢,٣٣,٣٤,٣٥,٣٦,٣
Never mind. After more word combinations when searching the archives, I came
across Wolfgang’s answer here: gmane.comp.tex.context/85673
http://article.gmane.org/gmane.comp.tex.context/85673, in which he says to
use the \defineconversion command. E.g.:
\defineconversion
[myconversion
]
% Use the set of symbols that has become customary in many publications for
footnote marks, whose
% origin seems to be lost in the misty dawn of history:
\defineconversion[tablefootnoteconversion][*,†,‡,§,\textbar\textbar,¶]
\starttext
%%% Begin title page
={.},
before=,
after=\blank]
\defineitemgroup[Questions]
\defineitemgroup[Answers]
\defineconversion[Questions][\numbers]
\defineconversion[Answers][\numbers]
\setupitemgroup[Questions][style=bold,
width=1.5em,
packed,
alternative=hanging,
stopper
)
\defineconversion [ñ][\spanishnumerals]
\defineconversion [Ñ][\Spanishnumerals]
to
\defineconversion [spanishnumerals] [\spanishnumerals]
\defineconversion [Spanishnumerals] [\Spanishnumerals]
What’s missing as well are these two definitions in core
you change (are you serious with these names)
\defineconversion [ñ][\spanishnumerals]
\defineconversion [Ñ][\Spanishnumerals]
well, kind of a joke these names ... fo rtesting .. i'll comment them
to
\defineconversion [spanishnumerals
in the text (not in the header).
For the moment I can achieve only the chapter numbering for the text but
not for the header:
\define[1]{\myconversion}{\ifcase #1\relax \or First\else
\convertnumber{Romannumerals}{#1}\fi}
\defineconversion[myconversion][\myconversion]
\setuphead[chapter][conversion
\relax
% 0
\or
First% 1
\else
\convertnumber{Romannumerals}{#1}%
\fi}
\defineconversion[Weirdnumber][\Weirdnumber]
\defineconversionset[Weirdchapter][number,Weirdnumber][number]
\setuplist[chapter][width=3em,numberconversionset=Weirdchapter]
\starttext
\completecontent
%%%
%defining numbered questions
\defineconversion[exercise][\numbers]
%\setupitemize[packed]
\def\StartQuestions{%
\startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]}
\def\StopQuestions{\stopitemize}
\def\q{\item}
% trye each of the following
\setups
%%%
%defining numbered questions
\defineconversion[exercise][\numbers]
%\setupitemize[packed]
\def\StartQuestions{%
\startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]}
\def\StopQuestions{\stopitemize}
\def\q{\item}
% trye each of the following
\setups
questions
\defineconversion[exercise][\numbers]
%\setupitemize[packed]
\def\StartQuestions{%
\startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]}
\def\StopQuestions{\stopitemize}
\def\q{\item}
% trye each of the following
\setups[style:simple]
%\setups[style:textrule
is:
\defineconversion
[myconversion]
[۱,۲,۳,۴,۵,۶,۷,۸,۹,۱۰,
۱۱,۱۲,۱۳,۱۴,۱۵,۱۶,۱۷,۱۸,۱۹,۲۰,
۲۱,۲۲,۲۳,۲۴,۲۵,۲۶,۲۷,۲۸,۲۹,۳۰]
\setuppagenumber[numberconversion=myconversion]
\setupbodyfont[dejavu,ss]
\starttext
\dorecurse{30}{\dontleavehmode\page}
\stoptext
Wolfgang
code for me is:
\define[1]
\MyConversion{\doifelse{\currentsectioncountervalue}{1}{\doiftextelse{\labeltext{chapter}}{ONE}{#1}}{#1}}
\defineconversion[MyConversion][\MyConversion]
\setuphead[chapter][conversion=MyConversion]
\starttext
\setuplabeltext[chapter=]
\chapter{Cool}
\chapter{Cat
if the variable \currentstructurelabel is
empty, so the code must be:
Why not just check the labeltext?
\define[1]\MyConversion
{\doifelse{#1}{1}{ONE}{#1}}
\define\CheckedConversion % #1 number
{\doiftextelse{\labeltexts{chapter}}\MyConversion\numbers}
\defineconversion
?
\defineexpandable[1]\PreviousNumber{\number\numexpr#1-1\relax}
\defineconversion[PreviousNumber][\PreviousNumber]
\setuphead[section][conversion=PreviousNumber]
\starttext
\startsection[title=A]
bla
\stopsection
\startsection[title=B]
bla
\stopsection
\stoptext
Wolfgang
B - 1 should be here instead of 2; automatically
bla
instead of:
0 A
bla
1 B
bla
So my original question remains:
How to start counting sections (locally) from 0, not from 1?
\defineexpandable[1]\PreviousNumber{\number\numexpr#1-1\relax}
\defineconversion
\stopitemize
\stoptext
Another trick is to use custom conversion which contain the delimiters and
disable the stopper.
\defineconversion[xan:a][a),b),c),d),e),f),g),h),i),j),k),l),…]
\defineconversion[xan:n][1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,…]
\starttext
\setupitemize[each][stopper
\stopparenlist
\item Three
\startitemize[n]
\item One
\item Two
\stopitemize
\stopitemize
\stoptext
Another trick is to use custom conversion which contain the delimiters and
disable the stopper.
\defineconversion[xan:a][a),b),c),d),e),f),g),h),i),j),k),l
]\Previousnumber
{\number\numexpr#1-1\relax}
\defineconversion[previousnumber][\Previousnumber]
\setuphead[chapter][conversion=previousnumber]
\starttext
\dorecurse{5}{\chapter{Chapter #1}}
\stoptext
Wolfgang
Thanks Wolfgang, nearly perfect, what I wanted.
The problem left is here:
\defineexpandable[1]\Previousnumber
{\number\numexpr#1-1\relax}
\defineconversion[previousnumber][\Previousnumber]
\setuphead[section][conversion=previousnumber]
\starttext
\dorecurse{5}{\chapter{Chapter #1}
\section
it to
postion. This doesn't show up right in the minimal, but it works.
Help in solving this would be greatly appreciated.
%
\defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] % footnote
header symbols
\starttext
\subject{Subject Name}
\blank
.
%
\defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] % footnote header
symbols
\starttext
\subject{Subject Name}
\blank
\startlocalfootnotes % [conversion=set fnsym]
\setupnotation[footnote][numberconversion=fnsym,rule=off] % change footnote
symbols
, but it works.
Help in solving this would be greatly appreciated.
%
\defineconversion[fnsym][\m{\dagger},\m{*},\m{**},\m{***}] % footnote header
symbols
\starttext
\subject{Subject Name}
\blank
\startlocalfootnotes % [conversion=set fnsym]
\setupnotation[footnote
]\ChapterConversion
{\convertnumber{Numbers}{#1}.0}
\defineconversion[ChapterConversion][\ChapterConversion]
\setuphead[chapter][conversion=ChapterConversion]
\starttext
\completecontent
\chapter{First Chapter}
\section{First Section}
\stoptext
Wolfgang
It didn't work. Either with texexec or with context.
Here is a simpler test case
start
% basic test to change footnotes bullet to a symbol
% basice test to change footnotes bullet to a symbol
% \setupfootnotes[rule=off] % had no affect
\defineconversion
% \setupfootnotes[rule=off] % had no affect
\defineconversion[fnsym]{ \dagger,*,**,***} % etc.
\setupfootnotes[conversion=fnsym, numberconversion=fnsym] % Doesn't
work
\setupnotation[footnote][numberconversion=fnsym,alternative=text] % Doesn't
work
% conversion=set fnsym
[rule=off] % had no affect
\defineconversion[fnsym]{ \dagger,*,**,***} % etc.
\setupfootnotes[conversion=fnsym, numberconversion=fnsym] % Doesn't
work
\setupnotation[footnote][numberconversion=fnsym,alternative=text] % Doesn't
work
% conversion=set fnsym or conversion=fnsym
From ConTeXt's Wiki Garden the below should work, but it isn't.
How can this be accomlished. I want to use just \dagger for the symbol, but
any symbol would do.
\definesymbol[4]{\dagger]
\starttext
\defineconversion[dagger][{\dagger},{\dagger}] % use a \dagger for the
footnote
Am 28.03.2013 um 07:07 schrieb hwit...@gmail.com:
From ConTeXt's Wiki Garden the below should work, but it isn't.
How can this be accomlished. I want to use just \dagger for the symbol, but
any symbol would do.
\definesymbol[4]{\dagger]
\starttext
\defineconversion[dagger
is not working
In \about[sub:one], the hyperlink is working
\stoptext
A workaround (using a horrible hack):
\defineconversion[gobble][\**gobbleoneargument]
\setupcaption[figure][**numberconversion=gobble]
\setuplabeltext[figure=]
\startplacefigure
[ ... location={here}, ...] % Do not add
In \about[fig:cow.pdf], the hyperlink is not working
In \about[sub:one], the hyperlink is working
\stoptext
A workaround (using a horrible hack):
\defineconversion[gobble][\gobbleoneargument]
\setupcaption[figure][numberconversion=gobble]
\setuplabeltext[figure=]
\startplacefigure
[ ... location
basically
I need to prepend the word 'cien' for each word number from 1 to 99 to write
the one-hundreds, 'doscientos' for the two-hundreds... Here is my dirty hacked
version of the macro (you may save it as 'numstr.tex' for compiling), and a
minimal example as follows:
\input numstr
\defineconversion
:
\input numstr
\defineconversion[numstring][\numstr]
\setupuserpagenumber[numberconversion=numstring]
\starttext
\dorecurse{100}{\recurselevel\page}
\stoptext
I'm such a noob with TeX and I cannot figure out how to do this, and I need
this for this friday!. However, Aditya in the TeX section
English word:
\defineconversion
[words]
[One, Two, Three, Four, Five]
I forgot to add how to hook this into Hans' example:
\defineconversion
[words]
[One, Two, Three, Four, Five]
\setuphead
[chapter]
[header=high,
command=\MyChapterTitle,
style=\bfc
English word:
\defineconversion
[words]
[One, Two, Three, Four, Five]
I forgot to add how to hook this into Hans' example:
\defineconversion
[words]
[One, Two, Three, Four, Five]
\setuphead
[chapter]
[header=high,
command=\MyChapterTitle,
style=\bfc
to the
corresponding English word:
\defineconversion
[words]
[One, Two, Three, Four, Five]
I forgot to add how to hook this into Hans' example:
\defineconversion
[words]
[One, Two, Three, Four, Five]
\setuphead
[chapter]
[header=high,
command=\MyChapterTitle,
style=\bfc
2012-11-10 Hans Hagen:
On 11/10/2012 1:38 PM, Andrew Dowell wrote:
Chapter One
This is the Name of the First Chapter
I assume the OP was looking for a way to convert a counter to the
corresponding English word:
\defineconversion
[words]
[One, Two
:
\defineconversion
[words]
[One, Two, Three, Four, Five]
I forgot to add how to hook this into Hans' example:
\defineconversion
[words]
[One, Two, Three, Four, Five]
\setuphead
[chapter]
[header=high,
command=\MyChapterTitle,
style=\bfc,
conversion=words,
numberstyle
://wiki.contextgarden.net/Command/convertnumber
http://wiki.contextgarden.net/Command/defineconversion
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax
Hello,
the following example is copied from
http://wiki.contextgarden.net/Command/setupfootnotes:
\defineconversion[starred][\starredconv]
\def\starredconv#1{\ifcase#1\or*\or**\or***\fi}
\setupfootnotes[conversion=starred,color=blue,frame=on]
\starttext
Charles IV\footnote{Best Czech
Am 31.10.2012 um 16:16 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
l...@pontex.cz:
Hello,
the following example is copied from
http://wiki.contextgarden.net/Command/setupfootnotes:
\defineconversion[starred][\starredconv]
\def\starredconv#1{\ifcase#1\or*\or**\or***\fi
}{\convertnumber{set 3}{#1}\quad}\par
\stoptext
You can write your own symbol lists with (I use math mode because the spacing
between the asterisks is better):
\defineconversion[starred][\m{*},\m{**},\m{***}]
- - Are they documented anywhere?
You can look if you find something in the manuals
for the hint. It is relatively easy to access the local counter for
a cell, and changing background colors dependon the current row works
well.
\defineconversion
[triadcolors]
[blue,blue,blue,red,red,red]
\startsetups zebra:three
\setupTABLE[frame=off,background=color]
\setupTABLE
1 - 100 of 237 matches
Mail list logo